<!--{template header}-->
<script type="text/javascript" src="{SITE_URL}js/jquery.js"></script>
<script type="text/javascript" src="{SITE_URL}js/calendar.js"></script>
<div class="content">
    <h1>手动添加/修改客户信息</h1>
    <form name="customerform" action="index.php?c=customer&a=add" method="POST">
        <div class="hr_system_zhuo zhuo">
            <div class="biaodan2">
                <h9>受理信息：</h9>
                <ul><p>受理时间：</p><li>2012.09.10/16:32 </li></ul>
                <ul><p>受理区域： </p><li>{$area[$user['areaid']]['name']}</li></ul>
                <ul><p>受理人员：</p><li>{$user['username']}</li></ul>
                <ul>
                    <p>客户来源：</p>
                    <li>
                        <select name="sourcetype" id="sourcetype">
                            <option value="1">网站注册</option>
                            <option value="2">电话来访</option>
                            <option value="3">同行渠道</option>
                            <option value="4">上门来访</option>
                            <option value="5">杂志广告</option>
                        </select>
                    </li>
                </ul>
                <ul>
                    <p>当前客户状态： </p>
                    <li>
                        <select name="status" id="status">
                            <option value="0">未处理客户</option>
                            <option value="1">已咨询客户</option>
                            <option value="2">跟单提醒</option>
                            <option value="3">有意向客户</option>
                            <option value="4">储备客户</option>
                            <option value="5">签约客户</option>
                            <option value="6">出签客户</option>
                            <option value="9">跑单客户</option>
                        </select>
                    </li>
                </ul>
            </div>
            <div class="biaodan">
                <h9>业务属性：</h9>
                <ul>
                    <p>办理国家：</p>
                    <li>
                        <select name="state" id="state" onchange="get_selected_country();">
                            <!--{loop $statelist $state}-->
                            <option value="{$state['id']}"><!--{$state['name']}--></option>
                            <!--{/loop}-->
                        </select>&nbsp;&nbsp;
                        <select name="country" id="country"></select>
                    </li>
                </ul>
                <ul>
                    <p>签证类型：</p>
                    <li>
                        <select name="passporttype" id="passporttype"><option value="1">商务签证</option><option value="2">旅游签证</option><option value="3">探亲访友</option></select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;邀请函：
                        <select name="inviteletter" id="inviteletter"><option value="0">否</option><option value="1">是</option></select>
                    </li>
                </ul>
                <ul><p>签证数量：</p><li><select name="peoplenum" id="peoplenum">
                            <option>1</option>
                            <option>2</option>
                            <option>3</option>
                            <option>4</option>
                            <option>5</option>
                            <option>6</option>
                            <option>7</option>
                            <option>8</option>
                            <option>9</option>
                            <option>10</option>
                            <option>11</option>
                            <option>12</option>
                            <option>13</option>
                            <option>14</option>
                            <option>15</option>
                            <option>16</option>
                            <option>17</option>
                            <option>18</option>
                            <option>19</option>
                            <option>20</option>
                        </select>&nbsp;人&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;是否加急：
                        <select name="urgent" id="urgent">
                            <option value="0">否</option>
                            <option value="1">是</option>
                        </select>&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;是否面试：
                        <select name="interview" id="interview">
                            <option value="0">否</option>
                            <option value="1">是</option>
                        </select>
                    </li>
                </ul>
            </div>

            <div class="biaodan">
                <h9>联系人信息：</h9>
                <ul>
                    <p>姓名：</p>
                    <li><input type="text" name="cusername" id="cusername" />&nbsp;&nbsp;性别：
                        <select name="cgender" id="cgender">
                            <option value="1">男</option>
                            <option value="0">女</option>
                        </select>
                    </li>
                </ul>
                <ul><p>手机号码：</p><li><input type="text" name="mobile" id="mobile" />&nbsp;&nbsp;电子邮箱：<input type="text" name="email" id="email" /></li></ul>
                <ul><p>固定电话：</p><li><input name="phone" type="text" id="phone" /></li></ul>
                <ul><p>联系地址：</p><li><input name="address" type="text" id="address" size="50" /></li></ul>
                <ul><p>传真：</p><li><input type="text" name="fax" id="fax" />&nbsp;&nbsp;邮编：<input type="text" name="postcode" id="postcode" /></li></ul>
            </div>
            <div class="biaodan">
                <h9>申请人护照信息：</h9>
                <ul><p>姓名：</p><li><input type="text" name="pusername" id="pusername" />&nbsp;&nbsp;性别：<select name="pgender" id="pgender">
                            <option value="1">男</option>
                            <option value="0">女</option>
                        </select></li>
                </ul>
                <ul><p>现居住地：</p><li><select name="homecity" id="homecity">
                            <!--{loop $citylist $city}-->
                            <option value="{$city['id']}">{$city['name']}</option>
                            <!--{/loop}-->
                        </select>&nbsp;&nbsp;出发日期：&nbsp;&nbsp;<input name="departuretime" type="text" id="departuretime" onclick="calendar.show(this);" size="10" maxlength="10" readonly="readonly" /></li></ul>
                <ul><p>护照签发地：</p><li><select name="passportcity" id="passportcity">
                            <!--{loop $citylist $city}-->
                            <option value="{$city['id']}">{$city['name']}</option>
                            <!--{/loop}-->
                        </select></li></ul>
                <ul><p>护照号码：</p><li><input name="passportnum" type="text" id="passportnum" size="50" /></li></ul>
                <ul><p>护照有效期：</p><li><input name="passportstart" type="text" id="passportstart" onclick="calendar.show(this);" size="10" maxlength="10" readonly="readonly" /> - <input name="passportend" type="text" id="passportend" onclick="calendar.show(this);" size="10" maxlength="10" readonly="readonly" /></li></ul>
                <ul><p>备注：</p><li><textarea name="pcomment" cols="50" rows="1" id="pcomment"></textarea></li></ul>
            </div>

            <div class="biaodan">
                <h9>财务信息：</h9>
                <ul><p>市场报价：</p><li>￥2700元  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;实际定价：<input name="price" type="text" id="price" size="10" value="0" onblur="summoney()"/>&nbsp;元&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;订单收费总计：￥<span id="showmoney"></span>元</li></ul>
                <ul><p>支出签证成本：</p><li><input name="passportexpense" type="text" id="passportexpense" size="10" value="0"/>&nbsp;元&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;支付对象：<select name="payobject" id="payobject">
                            <option value="1">领馆</option>
                            <option value="2">渠道</option>
                        </select></li></ul>
                <ul><p>支出保险成本：</p><li><input name="insuranceexpense" type="text" id="insuranceexpense" size="10"  value="0"/>&nbsp;元</li></ul>
                <ul><p>发票税费：</p><li>需要发票：<select name="invoice" id="invoice">
                            <option value="0">否</option>
                            <option value="1">是</option>
                        </select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;金额：<input name="invoicemoney" type="text" id="invoicemoney" size="10" value="0"/>&nbsp;元</li></ul>
                <ul>
                    <p>实收已付款：</p>
                    <li><input name="money" type="text" id="money" size="10"  value="0"/>&nbsp;元&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;付款方式： <select name="paytype" id="paytype">
                            <option value="1">现金支付</option>
                            <option value="2">银行转账</option>
                            <option value="3">网站充值</option>
                            <option value="4">POS刷卡</option>
                        </select></li></ul>
                <ul><p>尾款：</p><li><input name="finalpay" type="text" id="finalpay" size="10" value="0"/>&nbsp;元&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<select name="finalpaystatus" id="finalpaystatus">
                            <option value="0">未付</option>
                            <option value="1">已付</option>
                        </select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;确认人：<input name="confirmor" type="text" id="confirmor" size="10" /></li></ul>
                <ul><p>订单业绩：</p><li>￥<span id="grademoney">0</span>元</li></ul>
            </div>
            <div class="biaodan">
                <h9>订单受理结果：</h9>
                <ul><p>出签结果：</p><li><select name="signedstate" id="signedstate">
                            <option value="0">未确定</option>              
                            <option value="1">成功出签</option>
                            <option value="2">签证未通过</option>
                        </select></li></ul>
                <ul><p>出签日期：</p><li>2012.10.07/12：15</li></ul>
            </div>
            <div class="biaodan tijiao">
                <ul>
                    <input type="submit" name="submit" id="button" value="提交" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="submit" name="button2" id="button2" value="取消" /></ul>
            </div>

        </div>
    </form>
    <!-- end .content --></div>
<!-- end .container --></div>
<script type="text/javascript">
    function get_selected_country(){
        var pid = $("#state").val();
        $.post("{SITE_URL}index.php?c=area&a=ajaxcountry", {pid:pid},
        function(options){
            $("#country").html(options);
        });
    }
    function summoney(){
        var totalmoney = $("#peoplenum").val()*$("#price").val();
        $("#showmoney").html(totalmoney);
        $("#grademoney").html(totalmoney);
    }
    $(document).ready(function(){
        get_selected_country();
    });
</script>
</body>
</html>
